package org.dmgenie.mtech.ke.ga.model;

public class LoadsWeight {

	final static double[] loads = {
			27	,	57	,	33	,	55	,	65	,
			26	,	21	,	28	,	43	,	40	,	
			27	,	62	,	25	,	33	,	67	,	
			30	,	46	,	31	,	58	,	59	,	
			37	,	55	,	61	,	25	,	38	,
			65	,	51	,	30	,	40	,	69	,
			33	,	61	,	66	,	63	,	53	,
			37	,	53	,	67	,	32	,	44	,
			53	,	47	,	39	,	38	,	46	,
			67	,	36	,	30	,	37	,	43	,
			68	,	50	,	64	,	32	,	32	,
			59	,	24	,	67	,	54	,	23	,
			49	,	60	,	65	,	35	};

	public static double getAverage() {
		double total = 0;
		for (int i=0; i<loads.length; i++) {
			total += loads[i];
		}
		//System.out.println("total " + total + " average stack " + total / loads.length / 4);
		return total / loads.length;
	}
		
	public static double getWeight(int packageId) {
		return loads[packageId];
	}

}
